<?php
session_start();
require($_SERVER['DOCUMENT_ROOT'].'/resources/lib/database.php');
require($_SERVER['DOCUMENT_ROOT'].'/resources/lib/functions.php');
require($_SERVER['DOCUMENT_ROOT'].'/resources/lib/class.admin.php');
ob_start("sanitize_output");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="/admin/resources/client/bundle.css" />
<script src="/admin/resources/client/bundle.js" type="text/javascript"></script>

<title>Installer</title>
</head>

<body>
<div class="oneem" style="width:700px;margin-left:auto;margin-right:auto;border:1px solid #ddd;margin-top:3em;margin-bottom:3em;">
	<h1>Install.</h1>
    <form class="inline" action="/admin/installer/install.php"/>
	<input type="hidden" class="settings" value='{"buttonWaitingValue":"Installing","updateNode":"#response"}' />	

<label>Site Name:</label>
<input type="text" class="comment-field req" name="site_name" id="site_name" />
<p class="hint">The name of the site (required)</p>
<label>Site URL:</label>
<input type="text" class="comment-field req" name="site_url" id="site_url" />
<p class="hint"><strong>http://www.example.org</strong>  excluding trailing slash (required)</p>
<label>Administrator's email address:</label>
<input type="text" class="comment-field req" name="site_admin_email" id="site_admin_email" />
<p class="hint">Required</p>
<label>Administrator password:</label>
<input type="password" class="comment-field req" name="site_admin_password" id="site_admin_password" />
<p class="hint">Err make it strong!!</p>
<label>Confirm Administrator password:</label>
<input type="password" class="comment-field req" name="site_confirm_admin_password" id="site_confirm_admin_password" />
<p class="hint">Confirm that strong password!!</p>

<input type="submit" class="button" value="Install Site" style="margin-top:1em;" />
	</form>
    <div class="clearfix"></div>
</div>
<div id="response" style="display:none;"></div>
</body>
</html>
